How to serialize objects to json

visit shbcf.ru